package com.freeter.modules.FriendShipLink.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;



/**
 * 
 * 数据库通用操作实体类（普通增删改查）
 * @author xuchen
 * @email 171998110@qq.com
 * @date 2019-09-04 16:11:48
 */
@TableName("friendship_link")
@ApiModel(value = "FriendshipLink")
public class FriendshipLinkEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public FriendshipLinkEntity() {
		
	}
	
	public FriendshipLinkEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	/**
	 * 
	 */
	
	@TableId(value = "id",type = IdType.INPUT)
	@ApiModelProperty(value = "",hidden = true)
	private String id;
	
	/**
	 * 友情链接
	 */
						
	@ApiModelProperty(value = "友情链接")
	private String link;
	
	/**
	 * 
	 */
					
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 			
	@TableField(fill = FieldFill.INSERT) 
	@ApiModelProperty(value = "",hidden = true)
	private Date createTime;
	
	/**
	 * 网站名称
	 */
						
	@ApiModelProperty(value = "网站名称")
	private String siteName;
	
	/**
	 * 设置：
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：友情链接
	 */
	public void setLink(String link) {
		this.link = link;
	}
	/**
	 * 获取：友情链接
	 */
	public String getLink() {
		return link;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：网站名称
	 */
	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}
	/**
	 * 获取：网站名称
	 */
	public String getSiteName() {
		return siteName;
	}
}
